package com.hilatest.wsexample.basic.chapter2.webresult;

import java.util.Date;

import javax.jws.WebService;

@WebService(endpointInterface="com.hilatest.wsexample.basic.chapter2.webresult.TimeServerWebResult")
public class TimeServerWebResultImpl implements TimeServerWebResult {

	public String getTimeString() {
		return new Date().toString();
	}

	public long getTimeAsElapsed() {
		return new Date().getTime();
	}

}
